package com.meisupic.copyright.support.security;

import org.springframework.security.authentication.AbstractAuthenticationToken;

/**
 * @Author lanjian
 * @Date 2018/3/12 上午11:05
 */
public class HuabanLoginAuthenticationToken extends AbstractAuthenticationToken {

  private final Object principal;
  private Object credentials;


  public HuabanLoginAuthenticationToken(
      Object principal, Object credentials) {
    super(null);
    this.principal = principal;
    this.credentials = credentials;
    super.setAuthenticated(false);
  }


  @Override
  public Object getCredentials() {
    return this.credentials;
  }


  @Override
  public Object getPrincipal() {
    return this.principal;
  }
}
